<!--  -->
<template>
  <div>
    <router-view></router-view>
    <!-- <audio ref="audio" id="reverse-audio"></audio> -->
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  components: {},
  data() {
    return {};
  },
  computed: {
    ...mapState({
      src: (state) => state.reverseAudioSrc,
    }),
  },
  watch: {
  },
  methods: {},
  created() {},
  mounted() {},
};
</script>
<style lang="less">
@keyframes move {
  0% {
    box-shadow:0px 0px 0 rgba(39,191,163,0.5);
  }
  100% {
    box-shadow:0px 0px 10px rgba(39,191,163,0.5);
  }
}
.yxp-wrap {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: url(../../assets/yxp-bg.png) no-repeat center center;
  background-size: 1600px 800px;
  overflow: hidden;
  z-index: 1;
}
@media screen and (max-width: 1200px) {
  .yxp-word {
    width: 900px;
    height: 500px;
    &-top {
      padding-top: 30px;
      &-tit {
        font-size: 20px;
      }
      &-entry {
        padding-top: 4px;
      }
    }
    &-study {
      bottom: 21px;
      width: 150px;
      height: 34px;
      line-height: 34px;
      text-align: center;
      font-size:15px;
    }
    &-main {
      margin-top: 10px;
      .word-slider {
        width: 100px;
        height: 300px;
        overflow: hidden;
      }
      &-left {
        // margin-top: 42px;
        // margin-bottom: 42px;
        .yxp-canvas {
          width: 100%;
          text-align: center;
          .canvas-box {
            width: 50px;
            height: 50px;
            margin: 0 auto;
            canvas {
              width: 50px;
              height: 50px;
            }
          }
          .text {
            font-size: 14px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #163622;
            margin-top: 10px;
          }
           &:first-child {
            margin-top: 42px;
          }
          &:last-child {
            margin-top: 56px;
          }
        }
      }
      &-right {
        .right-box {
          padding: 26px 15px 34px;
        }
        .yxp-slider-r-item {
          height: 60px;
        }
      }
      &-center {
        width: 300px;
        height: 300px;
        margin-left: 100px;
        margin-right: 100px;
        margin-top: 5px;
        .center-box {
          left: 35px;
          top: 35px;
          width: 230px;
          height: 230px;
        }
        .circle-center {
          left: 65px;
          top: 65px;
          width: 170px;
          height: 170px;
          line-height:170px;
          font-size: 26px;
          // &:hover {
          //   transform: scale(1.1)
          // }
        }
        .circle-slider {
          width: 70px;
          height: 70px;
          line-height: 70px;
          transform-origin: 50px 150px;
          margin-top: -35px;
          transform: rotate(-15deg);
          // &:hover {
          //   transform: scale(1.1) rotate(15deg);
          // }
          span {
            transform: rotate(15deg);
          }
          &:nth-child(2) {
            transform: rotate(30deg);
            // &:hover {
            //   transform: scale(1.1) rotate(-30deg);
            // }
            span {
              transform: rotate(-30deg);
            }
          }
          &:nth-child(3) {
            transform: rotate(75deg);
            // &:hover {
            //   transform: scale(1.1) rotate(-75deg);
            // }
            span {
              transform: rotate(-75deg);
            }
          }
          &:nth-child(4) {
            transform: rotate(120deg);
            // &:hover {
            //   transform: scale(1.1) rotate(-120deg);
            // }
            span {
              transform: rotate(-120deg);
            }
          }
          &:nth-child(5) {
            transform: rotate(165deg);
            // &:hover {
            //   transform: scale(1.1) rotate(-165deg);
            // }
            span {
              transform: rotate(-165deg);
            }
          }
          &:nth-child(6) {
            transform: rotate(210deg);
            // &:hover {
            //   transform: scale(1.1) rotate(-210deg);
            // }
            span {
              transform: rotate(-210deg);
            }
          }
          &:nth-child(7) {
            transform: rotate(255deg);
            // &:hover {
            //   transform: scale(1.1) rotate(-255deg);
            // }
            span {
              transform: rotate(-255deg);
            }
          }
          &:nth-child(8) {
            transform: rotate(300deg);
            // &:hover {
            //   transform: scale(1.1) rotate(-300deg);
            // }
            span {
              transform: rotate(-300deg);
            }
          }
        }
      }
    }
  }
  .yxp-wordList-box {
    &-item {
      width: 750px;
      .yxp-wordList-item {
        width: 750px;
      }
    }
  }
}
@media screen and (min-width: 1200px) and (max-width: 1620px) {
  @keyframes bigCircle {
    0% {
      transform: scale(1)
    }
    50% {
      transform: scale(1.1)
    }
    100% {
      transform: scale(1)
    }
  }
  .yxp-word {
    width: 1300px;
    height: 650px;
    &-top {
      padding-top: 30px;
      &-tit {
        font-size: 30px;
      }
      &-entry {
        padding-top: 12px;
      }
    }
    &-study {
      bottom: 30px;
      width: 170px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      font-size:20px;
    }
    &-main {
      .word-slider {
        width: 120px;
        height: 330px;
        overflow: hidden;
      }
      &-left {
        margin-top: 30px;
        .yxp-canvas {
          width: 100%;
          text-align: center;
          .canvas-box {
            width: 60px;
            height: 60px;
            margin: 0 auto;
            canvas {
              width: 60px;
              height: 60px;
            }
          }
          .text {
            font-size: 14px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #163622;
            margin-top: 10px;
          }
           &:first-child {
            margin-top: 58px;
          }
          &:last-child {
            margin-top: 45px;
          }
        }
      }
      &-right {
        margin-top: 30px;
        .right-box {
          padding: 20px 12px 0;
        }
        .yxp-slider-r-item {
          height: 72px;
        }
      }
      &-center {
        width: 412px;
        height: 412px;
        margin-left: 132px;
        margin-right: 132px;
        margin-top: 20px;
        .center-box {
          left: 41px;
          top: 41px;
          width: 330px;
          height: 330px;
        }
        .circle-center {
          left: 96px;
          top: 96px;
          width: 220px;
          height: 220px;
          line-height: 220px;
          font-size: 33px;
          // &:hover {
          //   transform: scale(1.1);
          // }
        }
        .circle-slider {
          width: 90px;
          height: 90px;
          line-height: 90px;
          // transform-origin: 50px 204px;
          margin-top: -45px;
         // transform: rotate(-20deg);
          // &:hover {
          //   transform: scale(1.1) rotate(20deg);
          //    transform-origin: 50px -204px;
          // }
          // span {
          //   transform: rotate(20deg);
          // }
          &:nth-child(1) {
            transform: rotate(-20deg);
            span {
              transform: rotate(20deg);
            }
          }
          &:nth-child(2) {
            transform-origin: 50px 204px;
            transform: rotate(25deg);
            &:hover {
              transform-origin: 0 0;
              // animation: bigCircle .3s ease;
              // animation-fill-mode: forwards;
               transform: scale(1.1);
             // transform-origin: 50px 50px;
            }
            // span {
            //   transform: rotate(-25deg);
            // }
          }
          &:nth-child(3) {
            transform: rotate(70deg);
            // &:hover {
            //   transform: scale(1.1) rotate(-70deg);
            // }
            span {
              transform: rotate(-70deg);
            }
          }
          &:nth-child(4) {
            transform: rotate(115deg);
            // &:hover {
            //   transform: scale(1.1) rotate(-115deg);
            // }
            span {
              transform: rotate(-115deg);
            }
          }
          &:nth-child(5) {
            transform: rotate(160deg);
            // &:hover {
            //   transform: scale(1.1) rotate(-160deg);
            // }
            span {
              transform: rotate(-160deg);
            }
          }
          &:nth-child(6) {
            transform: rotate(205deg);
            // &:hover {
            //   transform: scale(1.1) rotate(-205deg);
            // }
            span {
              transform: rotate(-205deg);
            }
          }
          &:nth-child(7) {
            transform: rotate(250deg);
            // &:hover {
            //   transform: scale(1.1) rotate(-250deg);
            // }
            span {
              transform: rotate(-250deg);
            }
          }
          &:nth-child(8) {
            transform: rotate(295deg);
            // &:hover {
            //   transform: scale(1.1) rotate(-295deg);
            // }
            span {
              transform: rotate(-295deg);
            }
          }
        }
      }
    }
  }
  .yxp-wordList-box {
    padding-left: 40px;
    padding-right: 40px;
    &-item {
      width: 100%;
      .yxp-wordList-item {
        width: calc((100% - 40px) / 2);
        &:nth-child(2n + 1) {
          margin-right: 40px;
        }
      }
    }
  }
}
@media screen and (min-width: 1620px) {
  .yxp-word {
    width: 1300px;
    height: 750px;
    &-top {
      padding-top: 30px;
      &-tit {
        font-size: 30px;
      }
      &-entry {
        padding-top: 12px;
      }
    }
    &-study {
      bottom: 50px;
      width: 170px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      font-size:20px;
    }
    &-main {
      .word-slider {
        width: 120px;
        height: 330px;
        overflow: hidden;
      }
      &-left {
        margin-top: 30px;
        .yxp-canvas {
          width: 100%;
          text-align: center;
          .canvas-box {
            width: 60px;
            height: 60px;
            margin: 0 auto;
            canvas {
              width: 60px;
              height: 60px;
            }
          }
          .text {
            font-size: 14px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #163622;
            margin-top: 10px;
          }
           &:first-child {
            margin-top: 58px;
          }
          &:last-child {
            margin-top: 45px;
          }
        }
      }
      &-right {
        margin-top: 30px;
        .right-box {
          padding: 20px 12px 0;
        }
        .yxp-slider-r-item {
          height: 72px;
        }
      }
      &-center {
        width: 430px;
        height: 430px;
        margin-left: 137px;
        margin-right: 137px;
        margin-top: 40px;
        .center-box {
          left: 40px;
          top: 40px;
          width: 350px;
          height: 350px;
        }
        .circle-center {
          left: 100px;
          top: 100px;
          width: 230px;
          height: 230px;
          line-height: 230px;
          font-size: 33px;
          &:hover {
            transform: scale(1.1);
          }
        }
        .circle-slider {
          width: 100px;
          height: 100px;
          line-height: 100px;
          transform-origin: 50px 225px;
          margin-top: -50px;
          transform: rotate(-20deg);
          &:hover {
              transform: scale(1.1) rotate(20deg);
            }
          span {
            transform: rotate(20deg);
          }
          &:nth-child(2) {
            transform: rotate(25deg);
            &:hover {
              transform: scale(1.1) rotate(-25deg);
            }
            span {
              transform: rotate(-25deg);
            }
          }
          &:nth-child(3) {
            transform: rotate(70deg);
            &:hover {
              transform: scale(1.1) rotate(-70deg);
            }
            span {
              transform: rotate(-70deg);
            }
          }
          &:nth-child(4) {
            transform: rotate(115deg);
            &:hover {
              transform: scale(1.1) rotate(-115deg);
            }
            span {
              transform: rotate(-115deg);
            }
          }
          &:nth-child(5) {
            transform: rotate(160deg);
            &:hover {
              transform: scale(1.1) rotate(-160deg);
            }
            span {
              transform: rotate(-160deg);
            }
          }
          &:nth-child(6) {
            transform: rotate(205deg);
            &:hover {
              transform: scale(1.1) rotate(-205deg);
            }
            span {
              transform: rotate(-205deg);
            }
          }
          &:nth-child(7) {
            transform: rotate(250deg);
            &:hover {
              transform: scale(1.1) rotate(-250deg);
            }
            span {
              transform: rotate(-250deg);
            }
          }
          &:nth-child(8) {
            transform: rotate(295deg);
            &:hover {
              transform: scale(1.1) rotate(-295deg);
            }
            span {
              transform: rotate(-295deg);
            }
          }
        }
      }
    }
  }
  .yxp-wordList-box {
    &-item {
      width: 1540px;
      .yxp-wordList-item {
        width: 750px;
        &:nth-child(2n + 1) {
          margin-right: 40px;
        }
      }
    }
  }
}
.yxp-wordList-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  // width: 750px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  
}
 .yxp-wordList-box {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 110px;
  overflow: auto;
  &-item {
    // width: 1540px;
    height: 100%;
    margin: 0 auto;
  }
}

.yxp-wordList-main {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: left;
  
  .list-item {
    height: 90px;
    line-height: 90px;
    &:hover {
      box-shadow:0px 0px 10px rgba(39,191,163,0.5);
      // animation: move .3s ease-out;
      // animation-fill-mode: forwards;
    }
  }
  .active {
    .word-en,.yxp-wordList-item-l {
      font-size: 30px;
      font-weight: bold;
    }
    .word-zh,.yxp-wordList-item-r {
      font-size: 20px;
      font-weight: 400;
    }
  }
  .yxp-wordList-item-l {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    margin-right: 40px;
    padding-left: 40px;
  }
  .yxp-wordList-item-r {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 22%;
    padding-right: 40px;
    img {
      width: 30px;
      height: 30px;
      &:last-child {
        margin-left: 20px;
      }
      &:nth-child(3) {
        margin-left: 20px;
      }
    }
  }
}

.yxp-wordList-pop {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  // height: 270px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding-bottom: 20px;
  z-index: 1300;
  .close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
  }
  .tips {
    font-size: 24px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #333333;
    padding: 96px 20px 0;
  }
  .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 53px;
    padding-bottom: 20px;
    .btn-item {
      width: 130px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      font-size: 18px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #fff;
      background: #27bfa3;
      border-radius: 100px;
      cursor: pointer;
      &:first-child {
        margin-right: 20px;
      }
    }
  }
}
.yxp-wordList-item-r {
  .success {
      width: 30px;
      height: 30px;
      background: url(../../assets/word/success.png) no-repeat;
      background-size: 100% 100%;
      img {
        width: 30px;
        height: 30px;
      }
      &:last-child {
        margin-left: 20px;
      }
      &:nth-child(2) {
        background-image: url(../../assets/word/success-normal.png)
      }
      &:nth-child(3) {
        margin-left: 20px;
        background-image: url(../../assets/word/error-normal.png)
      }
      &:nth-child(4) {
        background-image: url(../../assets/word/error-sel.png)
      }
    }
    .img2 {
      &:hover {
        background-image: url(../../assets/word/success-hover.png)
      }
    }
    .img3 {
      &:hover {
        background-image: url(../../assets/word/error-hover.png)
      }
    }
}
.btn-hover {
  &:hover {
    background:linear-gradient(360deg,rgba(39,178,152,1) 0%,rgba(52,203,163,1) 100%);
    box-shadow:0px 5px 10px rgba(59,201,164,0.3);
  }
}
.pop-hover {
  &:hover {
    background: #18A38A;
  }
}
</style>
